<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
[#--<#import "macro/spring.ftl" as spring />  <html>--]
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
</head>
<body>

[@shiro.guest]
您当前是游客，<a href="${basePath}/reg">注册</a>
[/@shiro.guest]

<span style="color: red;">${message!}</span>

<form action="/login" method="post">
    username:[@spring.formInput "user.username"/][@spring.bind "user.username"/] [@spring.showErrors ""/]</br>
    password:[@spring.formInput "user.password"/][@spring.bind "user.password"/][@spring.showErrors ""/]</br>
    remeber me:[@spring.formCheckbox "user.remeberMe"/][@spring.bind "user.remeberMe"/][@spring.showErrors ""/]</br>
    <input type="submit"></br>
</form>
</body>
</html>